package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ActivityGoodsMapper;
import com.ruoyi.system.domain.ActivityGoods;
import com.ruoyi.system.service.IActivityGoodsService;

/**
 * activityGoodsService业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-02
 */
@Service
public class ActivityGoodsServiceImpl implements IActivityGoodsService 
{
    @Autowired
    private ActivityGoodsMapper activityGoodsMapper;

    /**
     * 查询activityGoods
     * 
     * @param id activityGoods主键
     * @return activityGoods
     */
    @Override
    public ActivityGoods selectActivityGoodsById(Long id)
    {
        return activityGoodsMapper.selectActivityGoodsById(id);
    }

    /**
     * 查询activityGoods列表
     * 
     * @param activityGoods activityGoods
     * @return activityGoods
     */
    @Override
    public List<ActivityGoods> selectActivityGoodsList(ActivityGoods activityGoods)
    {
        return activityGoodsMapper.selectActivityGoodsList(activityGoods);
    }

    /**
     * 新增activityGoods
     * 
     * @param activityGoods activityGoods
     * @return 结果
     */
    @Override
    public int insertActivityGoods(ActivityGoods activityGoods)
    {
        return activityGoodsMapper.insertActivityGoods(activityGoods);
    }

    /**
     * 修改activityGoods
     * 
     * @param activityGoods activityGoods
     * @return 结果
     */
    @Override
    public int updateActivityGoods(ActivityGoods activityGoods)
    {
        return activityGoodsMapper.updateActivityGoods(activityGoods);
    }

    /**
     * 批量删除activityGoods
     * 
     * @param ids 需要删除的activityGoods主键
     * @return 结果
     */
    @Override
    public int deleteActivityGoodsByIds(Long[] ids)
    {
        return activityGoodsMapper.deleteActivityGoodsByIds(ids);
    }

    /**
     * 删除activityGoods信息
     * 
     * @param id activityGoods主键
     * @return 结果
     */
    @Override
    public int deleteActivityGoodsById(Long id)
    {
        return activityGoodsMapper.deleteActivityGoodsById(id);
    }
}
